package com.info.zhiduoduo.repository.dto.account;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.info.zhiduoduo.common.excelconverter.FlowtypeConverter;

import java.math.BigDecimal;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class MakerAccountFlowDto {

	@ExcelIgnore
	private int id;

	@ExcelIgnore
	private int userid;

	@ExcelProperty("工作室名称")
	private String username;

	@ExcelIgnore
	private int projectid;

	@ExcelProperty(value = "支出或收入", converter = FlowtypeConverter.class)
	private int flowtype;

	@ExcelProperty("金额")
	private BigDecimal flowAmount;

	@ExcelProperty("流水名目")
	private String flowname;

	@ExcelIgnore
	private int wdid;

	@ExcelProperty("记录时间")
	private Date createtime;

	@ExcelIgnore
	private int projectType;

	@ExcelProperty("企业名称")
	private String compname;

	@ExcelProperty("创客姓名")
	private String realname;
}
